#ifndef SUNREGISTER_H_
#define SUNREGISTER_H_
/*********************************************************/
class sMsg;

#include "sMsg.h"
#include <Poco/DOM/NodeIterator.h>
#include <string>
/*********************************************************/
class sUnRegister : public sMsg
{
private:
	// Friend classes
	friend class sMsg;

	// Variables
	std::string	hostAddr;			// The socket address of this server ( unicast )
	std::string	ringName;			// The name of the ring

	// Methods
	void deserialize(Poco::XML::NodeIterator&);	// Deserializes an execute job

protected:
public:
	// Control Methods
	virtual std::string serialize() const;		// Serialize the job to an xml string
	virtual void execute();				// Execute the job

	// Data control methods
	void setHostAddr(const std::string&);
	void setRingName(const std::string&);
	std::string getHostAddr() const;
	std::string getRingName() const;

	// Construction & Destruction
	sUnRegister() {};
	~sUnRegister() {};
};
/*********************************************************/
#endif // SUNREGISTER_H_
